package com.thinkwide.data.design;

public class MFDataFormItem {
    private String itemType;
    private String title;
    private String tableName;
    private String primaryFields;
    private String insertFields;
    private String modifyFields;
    private Boolean autoUpdateFields;

    private MFDataRelation relation;
    private MFDataBarItems toolbar;
    private MFDataFieldItems grid;
    private MFDataFieldItems search;
    private MFDataFieldItems edit;

    public MFDataFormItem() {
        itemType = "main";
        autoUpdateFields = false;
        relation = new MFDataRelation();
        toolbar = new MFDataBarItems();
        grid = new MFDataFieldItems();
        search = new MFDataFieldItems();
        edit = new MFDataFieldItems();
    }

    public void setItemType(String itemType) {
        this.itemType = itemType;
    }

    public String getItemType() {
        return itemType;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setPrimaryFields(String primaryFields) {
        this.primaryFields = primaryFields;
    }

    public String getPrimaryFields() {
        return primaryFields;
    }

    public void setInsertFields(String insertFields) {
        this.insertFields = insertFields;
    }

    public String getInsertFields() {
        return insertFields;
    }

    public void setModifyFields(String modifyFields) {
        this.modifyFields = modifyFields;
    }

    public String getModifyFields() {
        return modifyFields;
    }

    public void setRelation(MFDataRelation relation) {
        this.relation = relation;
    }

    public MFDataRelation getRelation() {
        return relation;
    }

    public void setToolbar(MFDataBarItems toolbar) {
        this.toolbar = toolbar;
    }

    public MFDataBarItems getToolbar() {
        return toolbar;
    }

    public void setGrid(MFDataFieldItems grid) {
        this.grid = grid;
    }

    public MFDataFieldItems getGrid() {
        return grid;
    }

    public void setSearch(MFDataFieldItems search) {
        this.search = search;
    }

    public MFDataFieldItems getSearch() {
        return search;
    }

    public void setEdit(MFDataFieldItems edit) {
        this.edit = edit;
    }

    public MFDataFieldItems getEdit() {
        return edit;
    }

    public void setAutoUpdateFields(Boolean autoUpdateFields) {
        this.autoUpdateFields = autoUpdateFields;
    }

    public Boolean isAutoUpdateFields() {
        return autoUpdateFields;
    }
}
